package com.caption.core.annotations;

import org.springframework.core.annotation.AliasFor;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @description: 需要登录注解
 * @author: 码农
 * @date: 2022-01-02 11:08:44
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequireLogin {

    @AliasFor("userEnum")
    String[] value() default {};

    @AliasFor("value")
    String[] userEnum() default {};

    String[] resource() default {};
}
